home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 November: Tool Chest / Dev.CD Nov 94.toast / Sample Code / Newton Sample Code 1.2 / * Sample Code Listing < prev    next >
Encoding:
Text File  |  1994-07-15  |  59.4 KB  |  1,358 lines  |  [TEXT/R*ch]

  1. Sample Code List - sorted by Category
  2. Updated 4:04 PM 7/11/94
  3.  
  4. NOTE:    Sample code is maintained and blessed by Bob Ebert.  Please mail ebert@newton.apple.com orALink: EBERT if you would like to comment, request, submit, or otherwise chat about sample code.
  5.  
  6. DTS does not necessarily guarantee lack of bugs and/or suitability of samples for home use.  The sample code provided by DTS should run and have some reasonable level of documentation, and will generally illustrate an important point about Newton programming, but should not be viewed as the correct or ideal approach for all occasions.  Design issues vary from application to application, and (good as they are) the DTS engineers occasionally make mistakes.
  7.  
  8. Sample code is on ftp.apple.com in pie/newton/samples.
  9. Sample code is on the Apple engineering net in EtherKnott:ES•Newton Software
  10. Sample code is on AppleLink, spread around the appropriate sub-folders, in:
  11.  Newton:PIE Developer Info:Newton:Technical Information:...
  12.  
  13.  
  14. GoodForm    v2-7/11/94    by PIEDTS    for Newton ToolKit
  15.     category: Application Design
  16.     keywords: soup filing routing Connection Kit delete find
  17.     description: This application is the basic template for creation of data logging applications. It will store and retrieve records from a soup, also beam, find, use Newton Connection kit and file the entries.
  18.  
  19.  
  20.  
  21. True Grid    v1-7/11/94    by Bob Ebert    for Newton ToolKit
  22.     category: Application Design
  23.     keywords: Grid View, Drawing, columns, proto, performance
  24.     description: Implements three different ways to do scrolling "grid" views based on soup data, and evaluates the complexity and performance tradeoffs of each.
  25.  
  26.  
  27.  
  28. ADSP Sample    v2-7/11/94    by Mike Cremer, Randy Carr, Kent Sandvik, Jim Schram    for Newton ToolKit
  29.     category: Communications
  30.     keywords: ADSP, endpoint, communications, AppleTalk
  31.     description: This example shows how to use the ADSP endpoints with the NTK 1.0.1 platforms file.
  32.         
  33.         Use CommToolbox and a terminal emulator for talking with the Newton. 
  34.  
  35.  
  36.  
  37. Agro Modem    v2-3/1/94    by Todd Courtois    for Newton ToolKit
  38.     category: Communications
  39.     keywords: modem tool, endpoint, Listen, Connect, Abort, Dispose, Disconnect
  40.     description: This sample app is based on the terminal emulator first introduced in andCrank and BitSpew.  It has been modified to support the modem tool,  including Apple and some Rockwell modems.  It sets up a modem endpoint using the sampleModemEndpoint,  mySerialIOPrefs, and myServicePrefs, then Instantiates in the connectButton's viewClickScript and Connects as a deferred action in  ConnectMe.
  41.         
  42.  
  43.  
  44.  
  45. IR Remote Sample    v2-7/11/94    by Mike Cremer & Kent Sandvik    for Newton ToolKit
  46.     category: Communications
  47.     keywords: Communications endpoint IR remote control
  48.     description: This sample shows how to make use of the specific IR functions for controlling consumer electronics applications. See the Q&A Communication sample for technical details. Note that the RC5.r file has resources for controlling Philips devices, and the Sony.r file has resource definitions for Sony consumer electronics products. You need to contact various other consumer electronics companies for more infomation about their IR protocols.
  49.  
  50.  
  51.  
  52. IRSample    v1-12/22/93    by Mike Cremer & Randy Carr & Kent Sandvik    for Newton ToolKit
  53.     category: Communications
  54.     keywords: Communication, IR, InfraRed, endpoint
  55.     description: This sample shows how to make use of the IR endpoints, also how to write IR protocol applications.
  56.  
  57.  
  58.  
  59. IRTimeSync    v2-7/11/94    by Jim Schram    for Newton ToolKit
  60.     category: Communications
  61.     keywords: IR Beam Time Synchronization State Machine Timeout
  62.     description: Synchronize the date-time clocks of two Newtons via IR beaming.  Demonstrates:
  63.         1.  Clock synchronization to +/- one second.
  64.         2.  Using SharpIR beaming protocol with strings.
  65.         3.  Simple state machine.
  66.         4.  Asynchronous Connect().
  67.         5.  Handling time-outs.
  68.         6.  Synchronous SysBeep().
  69.  
  70.  
  71.  
  72. LlamaTalk    v1-7/11/94    by Jim Schram    for Newton ToolKit
  73.     category: Communications
  74.     keywords: LlamaTalk LlamaShare AppleTalk ADSP MNP Echo Server State Machine
  75.     description: Everything you ever wanted to know about making ADSP work in Newton OS 1.3 and earlier (don't taunt the ADSP endpoint...)  This is a HUGE two-part sample comprised of both Newton & Mac code.  The Newton component is a simple front-end which demonstrates sending and receiving transactions of various data types.  It makes calls to a protoLlamaTalk user proto which is an encapsulation of EVERYTHING needed to handle ADSP and MNP communications reliably.  The Mac component is a simple back-end which receives transactions and echos back a "hex dump" of the transaction data.  It makes calls to a robust multiple-client communications library built on top of the Mac CommToolBox.  ALL I/O is asynchronous and interrupt-driven.  The library uses no globals and can be called from within an Application, Control Panel, Init, XCommand, 4D External, etc. etc
  76. pseudoInspector    v2-3/1/94    by Todd Courtois    for Newton ToolKit
  77.     category: Communications
  78.     keywords: serial, comms, "inspector"
  79.     description: This sample takes the SerialProtocol sample of Kent Sandvik one step further by implementing a very primitive Inspector.  Strings that are sent to the newton (using the same method as in SerialPro) are processed kinda like in the Inspector or Inspector Gadget.
  80.         
  81.         Version 2 cleans out Print statements and resizes properly.
  82.         
  83.  
  84.  
  85.  
  86. SuperSlurp    v1-7/11/94    by Jim Schram, Todd Courtois, ZZ, Kent Sandvik    for Newton ToolKit
  87.     category: Communications
  88.     keywords: soup, serial MNP endpoint, connection to PC or Mac
  89.     description: SuperSlurp sucks soup data down from a Mac via a serial endpoint, then stuffs it into a soup.  SuperSlurp has the capability of creating soups which are currently non-resident on the Newton at runtime, by command of the Mac.  
  90.         
  91.         SuperSlurp uses SERIAL MNP at 57600 bps.  Must have the Apple Modem CTB Tool which comes with NTK to use it.  Stuffs entries into the soup much much faster than old Slurp, also transfers data much faster and more reliably with MNP.
  92.  
  93.  
  94.  
  95. Built-In MetaDatas    v1-12/15/93    by Peter Alley    for Text
  96.     category: Connection Kit
  97.     keywords: MetaData, Newton Connection, Built In Apps
  98.     description: These are the updated MetaDatas for the built in Names and Card File applications for Newton Connection 2.0.  They illustrate the validation and multiple-export script features of Connection 2.0.  (They won't be found in the Newton, since they're encapsulated inside Newton Connection.)
  99.  
  100.  
  101.  
  102. Sync Another One    v2-3/8/94    by Bob Ebert    for Newton ToolKit
  103.     category: Connection Kit
  104.     keywords: Newton Connection, Macintosh, PC, Windows, MetaData, Soup, Store, User Interface
  105.     description: Illustrates how to write (and TEST) Newton Connection MetaData.
  106.  
  107.  
  108.  
  109. Soup Hacking    v1-9/15/93    by Kent Sandvik    for Inspector/Listner
  110.     category: Data Storage (Soups)
  111.     keywords: soup, CardSoups, CreateAppSoup, store, PCMCIA
  112.     description: Inspector-compatible text file illustrating some useful Soup functions.
  113.  
  114.  
  115.  
  116. Soup Tour    v2-3/7/93    by David Levy & Kent Sandvik    for Inspector/Listner
  117.     category: Data Storage (Soups)
  118.     keywords: Soup index entries stores Query Cursor
  119.     description: This is a simple walkthrough of many store and soup functions, including queries and smart index tricks. Check this out using an Inspector Window.
  120.  
  121.  
  122.  
  123. Beyond Help    v3-7/11/94    by Bob Ebert & Maurice Sharp    for Newton Book Maker
  124.     category: Digital books
  125.     keywords: Help Book, Dickens, Tiny Tim, How Do I
  126.     description: Illustrates creation and usege of a custom help book.
  127.  
  128.  
  129.  
  130. BookSample    v2-11/12/93    by Bob Ebert    for Newton Book Maker
  131.     category: Digital books
  132.     keywords: Digital Books, Dickens, Copperfield, Book Maker, Book Reader, Users Guide
  133.     description: A sample book source--the Newton Book Maker User's Manual in Newton Book Reader form.
  134.  
  135.  
  136.  
  137. Different Strokes    v2-9/15/93    by Bob Ebert    for Newton ToolKit
  138.     category: Drawing
  139.     keywords: Drawing, viewClickScript, ink
  140.     description: demonstrates how to capture ink and turn it into drawing objects for rendering on the screen, saving, etc.
  141.  
  142.  
  143.  
  144. Dot2Dot    v2-9/15/93    by Kent Sandvik    for Newton ToolKit
  145.     category: Drawing
  146.     keywords: view points polygon
  147.     description: Demonstrates the following: 
  148.          • mapping global coordinates to local ones
  149.          • tracking pen clicks and convert them to an array suitable for a polygon
  150.          • view system handling
  151.          • creating arrays in RAM
  152.          • dynamically changing a clPictureView's icon slot
  153.  
  154.  
  155.  
  156. Drawing    v2-2/28/94    by Bob Ebert    for Newton ToolKit
  157.     category: Drawing
  158.     keywords: drawing, polygon, line, point, rectangle, style, font, pict, shape
  159.     description: Demonstrates functions in drawing chapter, shows how to make shapes and display them, as well as how to offset the shapes.
  160.  
  161.  
  162.  
  163. Font Scaling    v3-9/15/93    by Bob Ebert    for Newton ToolKit
  164.     category: Drawing
  165.     keywords: drawing, font, scaling, pict, word, dictionary
  166.     description: Demonstrates how to scale fonts.  Not as simple as you might think at first... you have to put a text shape into a PICT shape and scale that.  There are some clipping concerns as well.
  167.         
  168.  
  169.  
  170.  
  171. GetPoly    v1-7/11/94    by J. Christopher Bell    for Newton ToolKit
  172.     category: Drawing
  173.     keywords: clPolygonView
  174.     description: This example shows how you can acquire a "points" structure for use with a clPolygonView.  The GetPoly sample uses two techniques, one using shape recognition and another using all points in a pen stroke. 
  175.  
  176.  
  177.  
  178. Hand Crank    v2-3/8/94    by Todd Courtois    for 
  179.     category: Drawing
  180.     keywords: scrolling, AddArraySlot, RemoveSlot, MakeText, DrawShape, viewIdleScript
  181.     description: Shows how one can do fast text drawing by hand.  Simple blasts an array of text lines to a clView.  Does no wrapping, but scrolls.
  182.         
  183.         Calls to GetRandomWord() could be replaced by useful text-formatting routines to take your gobs of text and get it onscreen quickly.  Important for things like terminal emulators.
  184.  
  185.  
  186.  
  187. IdleScript Anime    v2-2/28/94    by Todd Courtois    for Newton ToolKit
  188.     category: Drawing
  189.     keywords: IdleScript drawing, animation, PlaySound and drawing speed effects, protoIconButton
  190.     description: This app contains four similar clViews which execute simple animation in their idleScripts.
  191.  
  192.  
  193.  
  194. MonacoTest    v2-3/11/94    by Kent Sandvik & Mike Engber    for 
  195.     category: Drawing
  196.     keywords: Fonts
  197.     description: This sample provides a mono-spaced font for use on the Newton (Monaco 9) and gives a short demonstration of how to use it.
  198.  
  199.  
  200.  
  201. Up In Smoke    v3-10/1/93    by Mike Engber    for Newton ToolKit
  202.     category: Drawing
  203.     keywords: Smoke, Clouds, Poof, Drawing, CopyBits
  204.     description:  Shows how to achieve the ever popular smoke/poof/scrub effect.  Also illustrates scaling with CopyBits, using modeMask with CopyBits, and using BuildContext to force an update of an area of the screen.
  205.  
  206.  
  207.  
  208. IA Tour    v3-2/28/94    by Bill Luciw    for Inspector/Listner
  209.     category: Intelligent Assistant
  210.     keywords: Intelligent Assist, action template, target template, task template
  211.     description: This is code used during the Newton Developer Conference-93, Intelligent Assist presentation.  Version 2 fixes a couple of bugs that prevented straight through allocation.  It needs a README with some explanation (from the slides.)
  212.  
  213.  
  214.  
  215. Inspector Gadget    v2-2/28/94    by Bob Ebert & Ando Moon    for Newton ToolKit
  216.     category: NewtonScript
  217.     keywords: Compile, NewtonScript, Hack, Evaluate
  218.     description: demonstrates using the “Compile” function to write newtonscript from the newton itself. Code on the plane...
  219.  
  220.  
  221.  
  222. Buttons    v4-7/11/94    by Maurice Sharp & Kent Sandvik    for Newton ToolKit
  223.     category: Protos
  224.     keywords: protoTextButton, button, drag, protoShowBar, Popup, DoPopup, PictureButton
  225.     description: Show how to do various things using buttons, we have three examples:
  226.           1) Use DoPopup to create a popup menu.
  227.          2) Show how to place a group of buttons inside a view that could be dragged
  228.          3) Show how to draw small pictures inside a button itself.
  229.          4) Shows how to do a fake protoShowBar style button
  230.  
  231.  
  232.  
  233. Date Expando    v1-9/15/93    by Maurice Sharp    for Newton ToolKit
  234.     category: Protos
  235.     keywords: protoExpando, proto
  236.     description: demonstrates a text expando with date fields.
  237.  
  238.  
  239.  
  240. DynaPicker    v1-11/12/93    by Todd Courtois    for Newton ToolKit
  241.     category: Protos
  242.     keywords: protoLabelPicker
  243.     description: Shows how to dynamically change the items in a protoLabelPicker.
  244.         
  245.  
  246.  
  247.  
  248. Expando Time    v2-3/7/94    by Giovanna Ostacchini & Maurice Sharp    for Newton ToolKit
  249.     category: Protos
  250.     keywords: Time, date, protoExpando, expando shell
  251.     description: A custom expando item that edits a time. Shows how to create a custom expando item based on protoTextExpando
  252.  
  253.  
  254.  
  255. Gauges    v2-2/28/94    by Kent Sandvik    for Newton ToolKit
  256.     category: Protos
  257.     keywords: protoGauge max min protoLabelinputline
  258.     description: the Gauges sample shows the following techniques:
  259.          • How to use a protoGauge
  260.          • How to change the max (or min) values of a gauge dynamically
  261.          • How to tie together this with smart use of a protoLabelInputLine 
  262.  
  263.  
  264.  
  265. Glancing    v2-2/28/94    by Kent Sandvik    for Newton ToolKit
  266.     category: Protos
  267.     keywords: protoGlance, protoLabeledBatteryGauge, protoPictureButton
  268.     description: Demonstrates a few system protos.
  269.          • Show how protoGlances work
  270.          • Has a protoLabeledBatteryGauge inside the Glance
  271.          • Shows how protoPictureButtons work
  272.  
  273.  
  274.  
  275. Greasy Spoon    v2-2/28/94    by Giovanna Ostacchini    for Newton ToolKit
  276.     category: Protos
  277.     keywords: protoPicker, pop up menus, order
  278.     description: A fairly straightforward demonstration of the protoPicker.
  279.  
  280.  
  281.  
  282. Keys    v3-2/28/94    by Maurice Sharp, J. Christopher Bell    for Newton ToolKit
  283.     category: Protos
  284.     keywords: key, protoKeyboard, protoKeypad, clKeyboardView
  285.     description: This shows how to do a keyboard, including using a picture for a keycap and using strings for what the key prints out. The new version shows one of the keys which will 'modify' the visual and output components of another key.
  286.  
  287.  
  288.  
  289. Number Expando    v1-10/7/93    by Maurice Sharp    for Newton ToolKit
  290.     category: Protos
  291.     keywords: proto, protoExpandShell, expando
  292.     description: shows how to create an expando item that takes and displays numbers. Provides a proto for people to use. Uses the setup2() messages.
  293.  
  294.  
  295.  
  296. Phone Expando    v1-9/15/93    by Maurice Sharp    for Newton ToolKit
  297.     category: Protos
  298.     keywords: protoExpandoShell, proto
  299.     description: Demonstrates a text expando with phone list style drop downs etc.  Similar to phone input lines from the cardfile.
  300.  
  301.  
  302.  
  303. Pict Buttons    v2-2/28/94    by Maurice Sharp    for Newton ToolKit
  304.     category: Protos
  305.     keywords: icon, PICT resource, Masks, pictures
  306.     description: illustrates:
  307.          1. How you can change the icon of a picture button
  308.          2. Two ways to get Newton pictures from PICT resources
  309.          3. The use of picture Masks
  310.  
  311.  
  312.  
  313. PictIndex    v1-9/15/93    by Maurice Sharp    for Newton ToolKit
  314.     category: Protos
  315.     keywords: proto, protoPictIndexer, pictures
  316.     description: Demonstrates using protoPictIndexer, which allows you to specify a large picture as a series of selectable small pictures.
  317.  
  318.  
  319.  
  320. protoa2z_TDS    v3-2/28/94    by Maurice Sharp    for Newton ToolKit
  321.     category: Protos
  322.     keywords: proto, protoPictIndexer
  323.     description: protoa2z_TDS gives you the functionality of the A to Z index in the overview of the Cardfile.  It's auser proto based on a proto in the ROMs.
  324.  
  325.  
  326.  
  327. protoTable    v2-2/28/94    by Maurice Sharp & Bob Ebert    for Newton ToolKit
  328.     category: Protos
  329.     keywords: protoTable, proto, lists, scroll
  330.     description: demonstrates the protoTable.  Does scrolling and on the fly updating based on the selected example.
  331.  
  332.  
  333.  
  334. QWERTY    v1-7/11/94    by J. Christopher Bell and Maurice Sharp    for Newton ToolKit
  335.     category: Protos
  336.     keywords: keyboard, qwerty, protoKeypad, protoKeyboard
  337.     description: The QWERTY project shows how to implement an on-screen keyboard which does not prompt for "add-to-dictionary?" or have the "dictionary" icon. This sample project creates a keyboard which looks like the American QWERTY keyboard.
  338.  
  339.  
  340.  
  341. Radio Cluster    v2-2/28/94    by Kent Sandvik    for Newton ToolKit
  342.     category: Protos
  343.     keywords: protoradiobutton, protoRadioCluster
  344.     description: demonstrates a radio button cluster.
  345.          • Shows how radio clusters and radiobuttons work
  346.          • Shows how to extract info from the radio cluster
  347.          • Shows some fun with view transition effects
  348.  
  349.  
  350.  
  351. Rec Toggle    v2-2/28/94    by Maurice Sharp    for Newton ToolKit
  352.     category: Protos
  353.     keywords: proto, recognition
  354.     description: Demos the recognition toggle button (as used in the notepad...).
  355.  
  356.  
  357.  
  358. Shell Game    v3-4/22/94    by Maurice Sharp    for Newton ToolKit
  359.     category: Protos
  360.     keywords: protoExpandoShell, proto
  361.     description: this little thing shows how to keep 2 shells that are side by side in sync. Kind of stupid, but you never know :-)
  362.  
  363.  
  364.  
  365. Show Me to the Bar    v2-2/28/94    by Todd Courtois    for Newton ToolKit
  366.     category: Protos
  367.     keywords: protoShowBar, filing
  368.     description: Very very simple app which shows the basics of setting up the protoShowBar.  Doesn't actually do any filing, but shows you how to set up the interface.  Implements the basics of all the required slots/functions for the protoShowBar.
  369.  
  370.  
  371.  
  372. tables and lists    v2-2/28/94    by Todd Courtois    for Newton ToolKit
  373.     category: Protos
  374.     keywords: protoTable, protoTextList, protos
  375.     description: Small demo of protoTable and protoTextList. Shows how you can do toggle selections on items (i.e., click once to select, then again to deselect), shows how you can do your own stuff when clicks happen (trivial in protoTextList, skanky in protoTable).
  376.  
  377.  
  378.  
  379. Text List    v2-9/15/93    by Kent Sandvik    for Newton ToolKit
  380.     category: Protos
  381.     keywords: protoTextList
  382.     description: shows how protoTextList operates
  383.  
  384.  
  385.  
  386. Unholy Drawers    v2-2/28/94    by Todd Courtois    for Newton ToolKit
  387.     category: Protos
  388.     keywords: protoDrawer, Toggle
  389.     description: This bit of sample code demonstrates how to create your own "drawers" like the Extras drawer, using the undocumented proto protoDrawer.  Demonstrates how to open, close, and add child views to a protoDrawer
  390.  
  391.  
  392.  
  393. Letter    v1-9/15/93    by Bob Ebert    for Newton ToolKit
  394.     category: Recognition
  395.     keywords: Recognition, Letters, Custom Dictionaries
  396.     description: This sample demonstrates three ways to perform letter-by-letter recognition.
  397.  
  398.  
  399.  
  400. WordArray    v1-7/11/94    by J. Christopher Bell    for Newton ToolKit
  401.     category: Recognition
  402.     keywords: word array, GetWordArray, GetScoreArray
  403.     description: This project shows how to access the recognition engine's statistics regarding most-likely words and confidence scores. The GetWordArray and GetScoreArray functions do most of the work in this sample code project.
  404.  
  405.  
  406.  
  407. AutoRoute    v1-7/11/94    by J. Christopher Bell    for Newton ToolKit
  408.     category: Routing
  409.     keywords: routing automatic actionbutton autofax autoprint automail autobeam printerChooser
  410.     description: This sample shows how to do routing without using a protoActionButton, as well as use the printerChooser proto. This sample uses the new platforms file functions Send, GetUserConfig, SetUserConfig, FlushUserConfig, and GetPrinterName.
  411.  
  412.  
  413.  
  414. AuxForm    v3-2/28/94    by Maurice Sharp    for Newton ToolKit
  415.     category: Routing
  416.     keywords: Printing, Auxiliary Form
  417.     description: Shows how to add an auxilliary information slip to print/fax slips. Also documents the process of adding these slips and the available system aux slips.
  418.  
  419.  
  420.  
  421. SendCard    v2-12/22/93    by Maurice Sharp    for Newton ToolKit
  422.     category: Routing
  423.     keywords: routing, beaming
  424.     description: Shows how to put multiple things into the outbox. Can be used as the basis of something that breaks up beams into multiple chunks
  425.  
  426.  
  427.  
  428. The Little Prints    v4-2/28/94    by Maurice Sharp    for Newton ToolKit
  429.     category: Routing
  430.     keywords: routing, print, fax
  431.     description: This is a minimalist approach to printing and faxing. That is really all it does.
  432.         v3 fixes a wee problem in the removeScript so it removes the correct thing :-)
  433.  
  434.  
  435.  
  436. Bitchin' Piano    v2-11/12/93    by Todd Courtois    for 
  437.     category: Sound
  438.     keywords: sound, samplingRate
  439.     description: This sample takes two downloaded sample sounds to create a two-octave "keyboard".  Eventually I'd add a nice piano-keyboard bitmap and maybe add a couple more octaves to make a more useful/pleasing piano.  But for now it's a good demo of how to shift pitch on a sound by modifying the samplingRate slot in a sound frame.
  440.  
  441.  
  442.  
  443. Heavy Metal Disco    v3-2/28/94    by Todd Courtois    for Newton ToolKit
  444.     category: Sound
  445.     keywords: sound, samplingRate, pitch, 22KHz, resource
  446.     description: Shows how to use pitch shifting on the fly with a sampled sound to get some eerie and almost frightening sounds out of a single downloaded sound resource.  Since v1, more efficient cloning, prettier base view, and 22KHz sound.
  447.         
  448.  
  449.  
  450.  
  451. Simple Dialer    v1-3/7/94    by Todd Courtois    for Newton ToolKit
  452.     category: Sound
  453.     keywords: Dial() method, protokeyboard layout
  454.     description: This simple app mainly demonstrates the root's :Dial() method, and secondarily 
  455.         demonstrates how to set up a protokeyboard.
  456.         
  457.  
  458.  
  459.  
  460. Sound Advice    v2-9/15/93    by Maurice Sharp    for Newton ToolKit
  461.     category: Sound
  462.     keywords: sound, resources
  463.     description: Shows how to import sounds into NTK and play the sound from NewtonScript.
  464.  
  465.  
  466.  
  467. Sound Tricks    v3-3/7/94    by Todd Courtois    for Newton ToolKit
  468.     category: Sound
  469.     keywords: Sound samples, ExtractByte, StuffByte, PlaySound
  470.     description: SoundTricks is intended to demonstrate a couple tricks with sound on the Newton, modifying the samplingRate of a sound sample to shift speed and pitch, and using StuffByte and ExtractByte on the actual sound samples to reverse a sound.
  471.  
  472.  
  473.  
  474. Notarize    v2-2/28/94    by Maurice Sharp    for Newton ToolKit
  475.     category: System Data
  476.     keywords: Notepad, sytem data
  477.     description: this sample shows how to transfer data from your app to the notepad while maintaining relative position of the text (and not breaking the Notepad.)
  478.  
  479.  
  480.  
  481. Preefer Madness    v4-7/11/94    by Mike Engber & Maurice Sharp    for Newton ToolKit
  482.     category: System Data
  483.     keywords: preferences, formulas, system soup
  484.     description: Demonstrates how to add your own panels (views) to the system preferences and formula roll.  Also demonstrates how to properly store/retrieve your data in the system soup.  Updated for info button in status bar.
  485.  
  486.  
  487.  
  488. Clock    v2-2/28/94    by Maurice Sharp    for Newton ToolKit
  489.     category: System Messages
  490.     keywords: idle, viewIdleScript, time, date
  491.     description: Demonstrates idle script and some time functions.
  492.  
  493.  
  494.  
  495. FalseAlarm    v2-7/11/94    by Mike Engber    for Newton ToolKit
  496.     category: System Services
  497.     keywords: Alarms, RegisterAlarm, Sleep
  498.     description: Demonstrates how to set alarms. Also includes a utility program for helping test your alarm application for robustness wrt installing the alarm package.
  499.  
  500.  
  501.  
  502. Undo Redo    v2-9/15/93    by Bob Ebert    for Newton ToolKit
  503.     category: System Services
  504.     keywords: Undo, Redo, ClearUndoStack
  505.     description: demonstrates registering Undo, and an attempt at Redo.  See the README doc for important information on Redo.
  506.  
  507.  
  508.  
  509. AdjustoButton    v1-7/11/94    by Maurice Sharp    for Newton ToolKit
  510.     category: User Interface
  511.     keywords: button, user interface, UI
  512.     description: This sample provides user prototypes for buttons that will automatically adjust themselves to obey the user interface guidelines on button spacing. 2 protos are provided, one for a standalone button (protoAdjustoButton) and one for clusters of buttons (protoAdjustoClusterButton).  The buttons also readjust when their text values are set using SetValue.
  513.  
  514.  
  515.  
  516. InfoButton    v1-7/11/94    by Maurice Sharp    for Newton ToolKit
  517.     category: User Interface
  518.     keywords: InfoButton, Info, Help, Prefs, Preferences, Splash, protos, About, Prefs
  519.     description: This sample provides a user proto for the info button for applications (protoInfoButton). This should be used for About, Help and Prefs in an application.
  520.  
  521.  
  522.  
  523. Splash    v1-7/11/94    by Bob Ebert & Maurice Sharp    for Newton ToolKit
  524.     category: User Interface
  525.     keywords: splash screen, info button, About
  526.     description: Shows how to do a splash screen that is visible while the application is opening and an about slip using new Info button.
  527.  
  528.  
  529.  
  530. Chooser    v2-2/28/94    by Todd Courtois    for Newton ToolKit
  531.     category: Utility Functions
  532.     keywords: NetworkChooser, AppleTalk, Printer, chooser
  533.     description: Shows how to  set up a simple Chooser to look for things on the net.  This sample shows how to go looking for printers, but this could be extended to, say, look for macs too.
  534.  
  535.  
  536.  
  537. London Calling    v2-2/28/94    by Maurice Sharp    for Newton ToolKit
  538.     category: Utility Functions
  539.     keywords: phone, callOptionsSlip
  540.     description: Shows how to convert a phone number into one with all the area codes and other special number for dialing based on TimeZone setting. Also shows how to access the callOptionsSlip so the user can specify options like area code, dialing prefix, ...
  541.  
  542.  
  543.  
  544. NewTextFuncs    v1-7/11/94    by Maurice Sharp    for Newton ToolKit
  545.     category: Utility Functions
  546.     keywords: TextBox, TextBounds, text, drawing, paragraph, size
  547.     description: Shows the TextBox and TextBounds functions.
  548.         TextBox wraps text to a box and blasts the bits to the screen
  549.         TextBounds returns the rectangle required for some text
  550.  
  551.  
  552.  
  553. Wally Math    v2-2/28/94    by ZZ and Todd    for Newton ToolKit
  554.     category: Utility Functions
  555.     keywords: Compile, Try, OnException
  556.     description: This code uses the Compile function to take written mathematical input and run it as newtonscript, then return an answer.  Now has good exception handling so that things like divide by zero don't cause it to crash.
  557.  
  558.  
  559.  
  560. ButtnBar    v2-2/28/94    by Maurice Sharp    for Newton ToolKit
  561.     category: Views
  562.     keywords: statusBar, button, protoApp
  563.     description: How to add buttons to a status bar the correct way. Includes documentation and a small sample.
  564.  
  565.  
  566.  
  567. DatePick    v1-9/15/93    by Bob Ebert    for Newton ToolKit
  568.     category: Views
  569.     keywords: Month, clMonthView, local scrolling, user proto, date, day
  570.     description: Shows a user proto that implements a clMonthView based date picker like the one found in the preferences or calendar app.  Lots of good stuff about clMonthView in here.
  571.  
  572.  
  573.  
  574. Modal Fun    v2-2/28/94    by Maurice Sharp    for Newton ToolKit
  575.     category: Views
  576.     keywords: modal dialog
  577.     description: shows how to do an application modal dialog, though why anyone would want to...
  578.  
  579.  
  580.  
  581. NoSelect    v1-7/11/94    by J. Christopher Bell    for Newton ToolKit
  582.     category: Views
  583.     keywords: selections kclearselectionsfunc editviews grey border
  584.     description: This example shows how to use the new platforms file function called ClearSelectionHilites. The function unselects selected data in a view, including the EditView special "grey border" selection.
  585.  
  586.  
  587.  
  588. Paragraph Scroll    v2-11/12/93    by Todd Courtois    for Newton ToolKit
  589.     category: Views
  590.     keywords: scrolling, size, viewOrigin
  591.     description: ParagraphScroll shows one way to scroll a clParagraphView.  Creates the view, stuffs it full of text, then changes the viewOrigin of the parent repeatedly.
  592.  
  593.  
  594.  
  595. Scroll Over    v2-10/13/93    by Bob Ebert    for Newton ToolKit
  596.     category: Views
  597.     keywords: Scrolling, Horizontal, Vertical, World Map, PICTs, tap and drag, SetOrigin
  598.     description: demonstrates 2D scrolling of larger views within a clipping view via two methods, totally custom and using abuilt in proto.  v2 removes an extra call to :Dirty() that wasn't necessary.
  599.  
  600.  
  601.  
  602. Size Doesn't Matter    v2-9/15/93    by Bob Ebert    for Newton ToolKit
  603.     category: Views
  604.     keywords: Scaling, Dragging, XOR, grow rectangle, drag, viewBounds reapair
  605.     description: Demonstrates dragging to change the size of a view, with intermediate feedback.  Also demonstrates how to repair viewBounds after Drag() has munged them.
  606.  
  607.  
  608.  
  609. Strange Changes    v2-3/8/94    by Todd Courtois    for Newton ToolKit
  610.     category: Views
  611.     keywords: clEditView, clPolygonView, viewChangedScript, viewAddChildScript
  612.     description: This sample code implements a workaround to a current clEditView bug.  The bug is, if you change the clPolygonView child of a clEditView without changing the viewBounds of the polygonView, the clEditView's viewChangedScript will not be called as it should be.
  613.         
  614.         This is a good example for studying when certain scripts are called in a clEditView.  It prints to the listener as various scripts are called.  Also very instructive on how to add your own scripts to the auto-generated children of a clEditView.
  615.  
  616.  
  617.  
  618. SyncScroll    v1-7/11/94    by J. Christopher Bell    for Newton ToolKit
  619.     category: Views
  620.     keywords: SyncScroll scroll view height templates
  621.     description: This example shows how to use SyncScroll and how to use the 'height' slot correctly with view templates.
  622.  
  623.  
  624.  
  625. TabsNStyles    v2-9/15/93    by Kent Sandvik and Christopher Bell    for Newton ToolKit
  626.     category: Views
  627.     keywords: clParagraphView styles tabs
  628.     description: demonstrates:
  629.          • style information in a clParagraphView
  630.          • tab information in a clParagraphView
  631.  
  632.  
  633.  
  634. ViewScripts    v2-2/28/94    by Bob Ebert & Gabriel Acosta-Lopez    for Newton ToolKit
  635.     category: Views
  636.     keywords: viewSetupFormScript, viewSetupChildrenScript, viewSetupDoneScript, viewDrawScript
  637.     description: illustrates order of form, child, done, and drawing scripts.
  638.  
  639.  
  640.  
  641. WakeUpAndGoToSleep    v1-3/3/94    by Mike Engber    for Newton ToolKit
  642.     category: Views
  643.     keywords: PowerOffScript, Sleep
  644.     description: Shows how to detect when the Newton wakes up.
  645.  
  646.  
  647.  
  648. Wrap It Up    v3-7/11/94    by Bob Ebert & J. Christopher Bell    for Newton ToolKit
  649.     category: Views
  650.     keywords: clParagraphView, clEditView, wrapping, line height, vCalculateBounds, SimpleTextHeight
  651.     description: illustrates dynamically changing the height of clParagraphViews based on their contents.  Two ways to do it are illustrated, one using the vCalculateBounds viewFlag, and one using a platform file function to calculate paragraph heights.
  652.  
  653.  
  654.  
  655. Checkbook    v3-3/9/94    by Neil Rhodes & PIE DTS    for Newton ToolKit
  656.     category: Miscellaneous (Other)
  657.     keywords: Application, Find, Filing, IA, Views, Soups, Connection
  658.     description: Full application example.
  659.         It supports routing, filing, IA and Newton Connection.   See the README for more info.
  660.  
  661.  
  662.  
  663. Extra Change    v2-10/27/93    by Mike Engber    for Newton ToolKit
  664.     category: Miscellaneous (Other)
  665.     keywords: SetExtrasInfo,Extras Drawer,Icon
  666.     description: This sample app changes it's icon(and text) in the Extras drawer when you tap it.
  667.  
  668.  
  669.  
  670. SoupShow    v2-12/22/93
  671.     by Maurice Sharp    for Newton ToolKit
  672.     category: Miscellaneous (Other)
  673.     keywords: views, application design, display data, data
  674.     description: This multi-part sample shows how to display data without all the noise of creating soups. It displays the names from the names file. It has 2 parts, a simple implementation that just has an individual item view and scrolls through names. It also has a more complex sample that does an overview as well.
  675.         
  676.  
  677. Sample Code List - sorted by Name
  678. Updated 4:04 PM 7/11/94
  679.  
  680. NOTE:    Sample code is maintained and blessed by Bob Ebert.  Please mail ebert@newton.apple.com orALink: EBERT if you would like to comment, request, submit, or otherwise chat about sample code.
  681.  
  682. DTS does not necessarily guarantee lack of bugs and/or suitability of samples for home use.  The sample code provided by DTS should run and have some reasonable level of documentation, and will generally illustrate an important point about Newton programming, but should not be viewed as the correct or ideal approach for all occasions.  Design issues vary from application to application, and (good as they are) the DTS engineers occasionally make mistakes.
  683.  
  684. Sample code is on ftp.apple.com in pie/newton/samples.
  685. Sample code is on the Apple engineering net in EtherKnott:ES•Newton Software
  686. Sample code is on AppleLink, spread around the appropriate sub-folders, in:
  687.  Newton:PIE Developer Info:Newton:Technical Information:...
  688.  
  689.  
  690.  
  691. AdjustoButton    v1-7/11/94    by Maurice Sharp    for Newton ToolKit
  692.     category: User Interface
  693.     keywords: button, user interface, UI
  694.     description: This sample provides user prototypes for buttons that will automatically adjust themselves to obey the user interface guidelines on button spacing. 2 protos are provided, one for a standalone button (protoAdjustoButton) and one for clusters of buttons (protoAdjustoClusterButton).  The buttons also readjust when their text values are set using SetValue.
  695.  
  696.  
  697.  
  698. ADSP Sample    v2-7/11/94    by Mike Cremer, Randy Carr, Kent Sandvik, Jim Schram    for Newton ToolKit
  699.     category: Communications
  700.     keywords: ADSP, endpoint, communications, AppleTalk
  701.     description: This example shows how to use the ADSP endpoints with the NTK 1.0.1 platforms file.
  702.         
  703.         Use CommToolbox and a terminal emulator for talking with the Newton. 
  704.  
  705.  
  706.  
  707. Agro Modem    v2-3/1/94    by Todd Courtois    for Newton ToolKit
  708.     category: Communications
  709.     keywords: modem tool, endpoint, Listen, Connect, Abort, Dispose, Disconnect
  710.     description: This sample app is based on the terminal emulator first introduced in andCrank and BitSpew.  It has been modified to support the modem tool,  including Apple and some Rockwell modems.  It sets up a modem endpoint using the sampleModemEndpoint,  mySerialIOPrefs, and myServicePrefs, then Instantiates in the connectButton's viewClickScript and Connects as a deferred action in  ConnectMe.
  711.         
  712.  
  713.  
  714.  
  715. AutoRoute    v1-7/11/94    by J. Christopher Bell    for Newton ToolKit
  716.     category: Routing
  717.     keywords: routing automatic actionbutton autofax autoprint automail autobeam printerChooser
  718.     description: This sample shows how to do routing without using a protoActionButton, as well as use the printerChooser proto. This sample uses the new platforms file functions Send, GetUserConfig, SetUserConfig, FlushUserConfig, and GetPrinterName.
  719.  
  720.  
  721.  
  722. AuxForm    v3-2/28/94    by Maurice Sharp    for Newton ToolKit
  723.     category: Routing
  724.     keywords: Printing, Auxiliary Form
  725.     description: Shows how to add an auxilliary information slip to print/fax slips. Also documents the process of adding these slips and the available system aux slips.
  726.  
  727.  
  728.  
  729. Beyond Help    v3-7/11/94    by Bob Ebert & Maurice Sharp    for Newton Book Maker
  730.     category: Digital books
  731.     keywords: Help Book, Dickens, Tiny Tim, How Do I
  732.     description: Illustrates creation and usege of a custom help book.
  733.  
  734.  
  735.  
  736. Bitchin' Piano    v2-11/12/93    by Todd Courtois    for 
  737.     category: Sound
  738.     keywords: sound, samplingRate
  739.     description: This sample takes two downloaded sample sounds to create a two-octave "keyboard".  Eventually I'd add a nice piano-keyboard bitmap and maybe add a couple more octaves to make a more useful/pleasing piano.  But for now it's a good demo of how to shift pitch on a sound by modifying the samplingRate slot in a sound frame.
  740.  
  741.  
  742.  
  743. BookSample    v2-11/12/93    by Bob Ebert    for Newton Book Maker
  744.     category: Digital books
  745.     keywords: Digital Books, Dickens, Copperfield, Book Maker, Book Reader, Users Guide
  746.     description: A sample book source--the Newton Book Maker User's Manual in Newton Book Reader form.
  747.  
  748.  
  749.  
  750. Built-In MetaDatas    v1-12/15/93    by Peter Alley    for Text
  751.     category: Connection Kit
  752.     keywords: MetaData, Newton Connection, Built In Apps
  753.     description: These are the updated MetaDatas for the built in Names and Card File applications for Newton Connection 2.0.  They illustrate the validation and multiple-export script features of Connection 2.0.  (They won't be found in the Newton, since they're encapsulated inside Newton Connection.)
  754.  
  755.  
  756.  
  757. ButtnBar    v2-2/28/94    by Maurice Sharp    for Newton ToolKit
  758.     category: Views
  759.     keywords: statusBar, button, protoApp
  760.     description: How to add buttons to a status bar the correct way. Includes documentation and a small sample.
  761.  
  762.  
  763.  
  764. Buttons    v4-7/11/94    by Maurice Sharp & Kent Sandvik    for Newton ToolKit
  765.     category: Protos
  766.     keywords: protoTextButton, button, drag, protoShowBar, Popup, DoPopup, PictureButton
  767.     description: Show how to do various things using buttons, we have three examples:
  768.          1) Use DoPopup to create a popup menu.
  769.          2) Show how to place a group of buttons inside a view that could be dragged
  770.          3) Show how to draw small pictures inside a button itself.
  771.          4) Shows how to do a fake protoShowBar style button
  772.  
  773.  
  774.  
  775. Checkbook    v3-3/9/94    by Neil Rhodes & PIE DTS    for Newton ToolKit
  776.     category: Miscellaneous (Other)
  777.     keywords: Application, Find, Filing, IA, Views, Soups, Connection
  778.     description: Full application example.
  779.         It supports routing, filing, IA and Newton Connection.   See the README for more info.
  780.  
  781.  
  782.  
  783. Chooser    v2-2/28/94    by Todd Courtois    for Newton ToolKit
  784.     category: Utility Functions
  785.     keywords: NetworkChooser, AppleTalk, Printer, chooser
  786.     description: Shows how to  set up a simple Chooser to look for things on the net.  This sample shows how to go looking for printers, but this could be extended to, say, look for macs too.
  787.  
  788.  
  789.  
  790. Clock    v2-2/28/94    by Maurice Sharp    for Newton ToolKit
  791.     category: System Messages
  792.     keywords: idle, viewIdleScript, time, date
  793.     description: Demonstrates idle script and some time functions.
  794.  
  795.  
  796.  
  797. Date Expando    v1-9/15/93    by Maurice Sharp    for Newton ToolKit
  798.     category: Protos
  799.     keywords: protoExpando, proto
  800.     description: demonstrates a text expando with date fields.
  801.  
  802.  
  803.  
  804. DatePick    v1-9/15/93    by Bob Ebert    for Newton ToolKit
  805.     category: Views
  806.     keywords: Month, clMonthView, local scrolling, user proto, date, day
  807.     description: Shows a user proto that implements a clMonthView based date picker like the one found in the preferences or calendar app.  Lots of good stuff about clMonthView in here.
  808.  
  809.  
  810.  
  811. Different Strokes    v2-9/15/93    by Bob Ebert    for Newton ToolKit
  812.     category: Drawing
  813.     keywords: Drawing, viewClickScript, ink
  814.     description: demonstrates how to capture ink and turn it into drawing objects for rendering on the screen, saving, etc.
  815.  
  816.  
  817.  
  818. Dot2Dot    v2-9/15/93    by Kent Sandvik    for Newton ToolKit
  819.     category: Drawing
  820.     keywords: view points polygon
  821.     description: Demonstrates the following: 
  822.          • mapping global coordinates to local ones
  823.          • tracking pen clicks and convert them to an array suitable for a polygon
  824.          • view system handling
  825.          • creating arrays in RAM
  826.          • dynamically changing a clPictureView's icon slot
  827.  
  828.  
  829.  
  830. Drawing    v2-2/28/94    by Bob Ebert    for Newton ToolKit
  831.     category: Drawing
  832.     keywords: drawing, polygon, line, point, rectangle, style, font, pict, shape
  833.     description: Demonstrates functions in drawing chapter, shows how to make shapes and display them, as well as how to offset the shapes.
  834.  
  835.  
  836.  
  837. DynaPicker    v1-11/12/93    by Todd Courtois    for Newton ToolKit
  838.     category: Protos
  839.     keywords: protoLabelPicker
  840.     description: Shows how to dynamically change the items in a protoLabelPicker.
  841.  
  842.  
  843.  
  844. Expando Time    v2-3/7/94    by Giovanna Ostacchini & Maurice Sharp    for Newton ToolKit
  845.     category: Protos
  846.     keywords: Time, date, protoExpando, expando shell
  847.     description: A custom expando item that edits a time. Shows how to create a custom expando item based on protoTextExpando
  848.  
  849.  
  850.  
  851. Extra Change    v2-10/27/93    by Mike Engber    for Newton ToolKit
  852.     category: Miscellaneous (Other)
  853.     keywords: SetExtrasInfo,Extras Drawer,Icon
  854.     description: This sample app changes it's icon(and text) in the Extras drawer when you tap it.
  855.  
  856.  
  857.  
  858. FalseAlarm    v2-7/11/94    by Mike Engber    for Newton ToolKit
  859.     category: System Services
  860.     keywords: Alarms, RegisterAlarm, Sleep
  861.     description: Demonstrates how to set alarms. Also includes a utility program for helping test your alarm application for robustness wrt installing the alarm package.
  862.  
  863.  
  864.  
  865. Font Scaling    v3-9/15/93    by Bob Ebert    for Newton ToolKit
  866.     category: Drawing
  867.     keywords: drawing, font, scaling, pict, word, dictionary
  868.     description: Demonstrates how to scale fonts.  Not as simple as you might think at first... you have to put a text shape into a PICT shape and scale that.  There are some clipping concerns as well.
  869.         
  870.  
  871.  
  872.  
  873. Gauges    v2-2/28/94    by Kent Sandvik    for Newton ToolKit
  874.     category: Protos
  875.     keywords: protoGauge max min protoLabelinputline
  876.     description: the Gauges sample shows the following techniques:
  877.          • How to use a protoGauge
  878.          • How to change the max (or min) values of a gauge dynamically
  879.          • How to tie together this with smart use of a protoLabelInputLine 
  880.  
  881.  
  882.  
  883. GetPoly    v1-7/11/94    by J. Christopher Bell    for Newton ToolKit
  884.     category: Drawing
  885.     keywords: clPolygonView
  886.     description: This example shows how you can acquire a "points" structure for use with a clPolygonView.  The GetPoly sample uses two techniques, one using shape recognition and another using all points in a pen stroke. 
  887.  
  888.  
  889.  
  890. Glancing    v2-2/28/94    by Kent Sandvik    for Newton ToolKit
  891.     category: Protos
  892.     keywords: protoGlance, protoLabeledBatteryGauge, protoPictureButton
  893.     description: Demonstrates a few system protos.
  894.          • Show how protoGlances work
  895.          • Has a protoLabeledBatteryGauge inside the Glance
  896.          • Shows how protoPictureButtons work
  897.  
  898.  
  899.  
  900. GoodForm    v2-7/11/94    by PIEDTS    for Newton ToolKit
  901.     category: Application Design
  902.     keywords: soup filing routing Connection Kit delete find
  903.     description: This application is the basic template for creation of data logging applications. It will store and retrieve records from a soup, also beam, find, use Newton Connection kit and file the entries.
  904.  
  905.  
  906.  
  907. Greasy Spoon    v2-2/28/94    by Giovanna Ostacchini    for Newton ToolKit
  908.     category: Protos
  909.     keywords: protoPicker, pop up menus, order
  910.     description: A fairly straightforward demonstration of the protoPicker.
  911.  
  912.  
  913.  
  914. Hand Crank    v2-3/8/94    by Todd Courtois    for 
  915.     category: Drawing
  916.     keywords: scrolling, AddArraySlot, RemoveSlot, MakeText, DrawShape, viewIdleScript
  917.     description: Shows how one can do fast text drawing by hand.  Simple blasts an array of text lines to a clView.  Does no wrapping, but scrolls.
  918.         
  919.         Calls to GetRandomWord() could be replaced by useful text-formatting routines to take your gobs of text and get it onscreen quickly.  Important for things like terminal emulators.
  920.  
  921.  
  922.  
  923. Heavy Metal Disco    v3-2/28/94    by Todd Courtois    for Newton ToolKit
  924.     category: Sound
  925.     keywords: sound, samplingRate, pitch, 22KHz, resource
  926.     description: Shows how to use pitch shifting on the fly with a sampled sound to get some eerie and almost frightening sounds out of a single downloaded sound resource.  Since v1, more efficient cloning, prettier base view, and 22KHz sound.
  927.         
  928.  
  929.  
  930.  
  931. IA Tour    v3-2/28/94    by Bill Luciw    for Inspector/Listner
  932.     category: Intelligent Assistant
  933.     keywords: Intelligent Assist, action template, target template, task template
  934.     description: This is code used during the Newton Developer Conference-93, Intelligent Assist presentation.  Version 2 fixes a couple of bugs that prevented straight through allocation.  It needs a README with some explanation (from the slides.)
  935.  
  936.  
  937.  
  938. IdleScript Anime    v2-2/28/94    by Todd Courtois    for Newton ToolKit
  939.     category: Drawing
  940.     keywords: IdleScript drawing, animation, PlaySound and drawing speed effects, protoIconButton
  941.     description: This app contains four similar clViews which execute simple animation in their idleScripts.
  942.  
  943.  
  944.  
  945. InfoButton    v1-7/11/94    by Maurice Sharp    for Newton ToolKit
  946.     category: User Interface
  947.     keywords: InfoButton, Info, Help, Prefs, Preferences, Splash, protos, About, Prefs
  948.     description: This sample provides a user proto for the info button for applications (protoInfoButton). This should be used for About, Help and Prefs in an application.
  949.  
  950.  
  951.  
  952. Inspector Gadget    v2-2/28/94    by Bob Ebert & Ando Moon    for Newton ToolKit
  953.     category: NewtonScript
  954.     keywords: Compile, NewtonScript, Hack, Evaluate
  955.     description: demonstrates using the “Compile” function to write newtonscript from the newton itself. Code on the plane...
  956.  
  957.  
  958.  
  959. IR Remote Sample    v2-7/11/94    by Mike Cremer & Kent Sandvik    for Newton ToolKit
  960.     category: Communications
  961.     keywords: Communications endpoint IR remote control
  962.     description: This sample shows how to make use of the specific IR functions for controlling consumer electronics applications. See the Q&A Communication sample for technical details. Note that the RC5.r file has resources for controlling Philips devices, and the Sony.r file has resource definitions for Sony consumer electronics products. You need to contact various other consumer electronics companies for more infomation about their IR protocols.
  963.  
  964.  
  965.  
  966. IRSample    v1-12/22/93    by Mike Cremer & Randy Carr & Kent Sandvik    for Newton ToolKit
  967.     category: Communications
  968.     keywords: Communication, IR, InfraRed, endpoint
  969.     description: This sample shows how to make use of the IR endpoints, also how to write IR protocol applications.
  970.  
  971.  
  972.  
  973. IRTimeSync    v2-7/11/94    by Jim Schram    for Newton ToolKit
  974.     category: Communications
  975.     keywords: IR Beam Time Synchronization State Machine Timeout
  976.     description: Synchronize the date-time clocks of two Newtons via IR beaming.  Demonstrates:
  977.         1.  Clock synchronization to +/- one second.
  978.         2.  Using SharpIR beaming protocol with strings.
  979.         3.  Simple state machine.
  980.         4.  Asynchronous Connect().
  981.         5.  Handling time-outs.
  982.         6.  Synchronous SysBeep().
  983.  
  984.  
  985.  
  986. Keys    v3-2/28/94    by Maurice Sharp, J. Christopher Bell    for Newton ToolKit
  987.     category: Protos
  988.     keywords: key, protoKeyboard, protoKeypad, clKeyboardView
  989.     description: This shows how to do a keyboard, including using a picture for a keycap and using strings for what the key prints out. The new version shows one of the keys which will 'modify' the visual and output components of another key.
  990.  
  991.  
  992.  
  993. Letter    v1-9/15/93    by Bob Ebert    for Newton ToolKit
  994.     category: Recognition
  995.     keywords: Recognition, Letters, Custom Dictionaries
  996.     description: This sample demonstrates three ways to perform letter-by-letter recognition.
  997.  
  998.  
  999.  
  1000. LlamaTalk    v1-7/11/94    by Jim Schram    for Newton ToolKit
  1001.     category: Communications
  1002.     keywords: LlamaTalk LlamaShare AppleTalk ADSP MNP Echo Server State Machine
  1003.     description: Everything you ever wanted to know about making ADSP work in Newton OS 1.3 and earlier (don't taunt the ADSP endpoint...)  This is a HUGE two-part sample comprised of both Newton & Mac code.  The Newton component is a simple front-end which demonstrates sending and receiving transactions of various data types.  It makes calls to a protoLlamaTalk user proto which is an encapsulation of EVERYTHING needed to handle ADSP and MNP communications reliably.  The Mac component is a simple back-end which receives transactions and echos back a "hex dump" of the transaction data.  It makes calls to a robust multiple-client communications library built on top of the Mac CommToolBox.  ALL I/O is asynchronous and interrupt-driven.  The library uses no globals and can be called from within an Application, Control Panel, Init, XCommand, 4D External, etc. etc.
  1004.  
  1005.  
  1006.  
  1007. London Calling    v2-2/28/94    by Maurice Sharp    for Newton ToolKit
  1008.     category: Utility Functions
  1009.     keywords: phone, callOptionsSlip
  1010.     description: Shows how to convert a phone number into one with all the area codes and other special number for dialing based on TimeZone setting. Also shows how to access the callOptionsSlip so the user can specify options like area code, dialing prefix, ...
  1011.  
  1012.  
  1013.  
  1014. Modal Fun    v2-2/28/94    by Maurice Sharp    for Newton ToolKit
  1015.     category: Views
  1016.     keywords: modal dialog
  1017.     description: shows how to do an application modal dialog, though why anyone would want to...
  1018.  
  1019.  
  1020.  
  1021. MonacoTest    v2-3/11/94    by Kent Sandvik & Mike Engber    for 
  1022.     category: Drawing
  1023.     keywords: Fonts
  1024.     description: This sample provides a mono-spaced font for use on the Newton (Monaco 9) and gives a short demonstration of how to use it.
  1025.  
  1026.  
  1027.  
  1028. NewTextFuncs    v1-7/11/94    by Maurice Sharp    for Newton ToolKit
  1029.     category: Utility Functions
  1030.     keywords: TextBox, TextBounds, text, drawing, paragraph, size
  1031.     description: Shows the TextBox and TextBounds functions.
  1032.         TextBox wraps text to a box and blasts the bits to the screen
  1033.         TextBounds returns the rectangle required for some text
  1034.  
  1035.  
  1036.  
  1037. NoSelect    v1-7/11/94    by J. Christopher Bell    for Newton ToolKit
  1038.     category: Views
  1039.     keywords: selections kclearselectionsfunc editviews grey border
  1040.     description: This example shows how to use the new platforms file function called ClearSelectionHilites. The function unselects selected data in a view, including the EditView special "grey border" selection.
  1041.  
  1042.  
  1043.  
  1044. Notarize    v2-2/28/94    by Maurice Sharp    for Newton ToolKit
  1045.     category: System Data
  1046.     keywords: Notepad, sytem data
  1047.     description: this sample shows how to transfer data from your app to the notepad while maintaining relative position of the text (and not breaking the Notepad.)
  1048.  
  1049.  
  1050.  
  1051. Number Expando    v1-10/7/93    by Maurice Sharp    for Newton ToolKit
  1052.     category: Protos
  1053.     keywords: proto, protoExpandShell, expando
  1054.     description: shows how to create an expando item that takes and displays numbers. Provides a proto for people to use. Uses the setup2() messages.
  1055.  
  1056.  
  1057.  
  1058. Paragraph Scroll    v2-11/12/93    by Todd Courtois    for Newton ToolKit
  1059.     category: Views
  1060.     keywords: scrolling, size, viewOrigin
  1061.     description: ParagraphScroll shows one way to scroll a clParagraphView.  Creates the view, stuffs it full of text, then changes the viewOrigin of the parent repeatedly.
  1062.  
  1063.  
  1064.  
  1065. Phone Expando    v1-9/15/93    by Maurice Sharp    for Newton ToolKit
  1066.     category: Protos
  1067.     keywords: protoExpandoShell, proto
  1068.     description: Demonstrates a text expando with phone list style drop downs etc.  Similar to phone input lines from the cardfile.
  1069.  
  1070.  
  1071.  
  1072. Pict Buttons    v2-2/28/94    by Maurice Sharp    for Newton ToolKit
  1073.     category: Protos
  1074.     keywords: icon, PICT resource, Masks, pictures
  1075.     description: illustrates:
  1076.          1. How you can change the icon of a picture button
  1077.          2. Two ways to get Newton pictures from PICT resources
  1078.          3. The use of picture Masks
  1079.  
  1080.  
  1081.  
  1082. PictIndex    v1-9/15/93    by Maurice Sharp    for Newton ToolKit
  1083.     category: Protos
  1084.     keywords: proto, protoPictIndexer, pictures
  1085.     description: Demonstrates using protoPictIndexer, which allows you to specify a large picture as a series of selectable small pictures.
  1086.  
  1087.  
  1088.  
  1089. Preefer Madness    v4-7/11/94    by Mike Engber & Maurice Sharp    for Newton ToolKit
  1090.     category: System Data
  1091.     keywords: preferences, formulas, system soup
  1092.     description: Demonstrates how to add your own panels (views) to the system preferences and formula roll.  Also demonstrates how to properly store/retrieve your data in the system soup.  Updated for info button in status bar.
  1093.  
  1094.  
  1095.  
  1096. protoa2z_TDS    v3-2/28/94    by Maurice Sharp    for Newton ToolKit
  1097.     category: Protos
  1098.     keywords: proto, protoPictIndexer
  1099.     description: protoa2z_TDS gives you the functionality of the A to Z index in the overview of the Cardfile.  It's auser proto based on a proto in the ROMs.
  1100.  
  1101.  
  1102.  
  1103. protoTable    v2-2/28/94    by Maurice Sharp & Bob Ebert    for Newton ToolKit
  1104.     category: Protos
  1105.     keywords: protoTable, proto, lists, scroll
  1106.     description: demonstrates the protoTable.  Does scrolling and on the fly updating based on the selected example.
  1107.  
  1108.  
  1109.  
  1110. pseudoInspector    v2-3/1/94    by Todd Courtois    for Newton ToolKit
  1111.     category: Communications
  1112.     keywords: serial, comms, "inspector"
  1113.     description: This sample takes the SerialProtocol sample of Kent Sandvik one step further by implementing a very primitive Inspector.  Strings that are sent to the newton (using the same method as in SerialPro) are processed kinda like in the Inspector or Inspector Gadget.
  1114.         
  1115.         Version 2 cleans out Print statements and resizes properly.
  1116.  
  1117.  
  1118.  
  1119. QWERTY    v1-7/11/94    by J. Christopher Bell and Maurice Sharp    for Newton ToolKit
  1120.     category: Protos
  1121.     keywords: keyboard, qwerty, protoKeypad, protoKeyboard
  1122.     description: The QWERTY project shows how to implement an on-screen keyboard which does not prompt for "add-to-dictionary?" or have the "dictionary" icon. This sample project creates a keyboard which looks like the American QWERTY keyboard.
  1123.  
  1124.  
  1125.  
  1126. Radio Cluster    v2-2/28/94    by Kent Sandvik    for Newton ToolKit
  1127.     category: Protos
  1128.     keywords: protoradiobutton, protoRadioCluster
  1129.     description: demonstrates a radio button cluster.
  1130.          • Shows how radio clusters and radiobuttons work
  1131.          • Shows how to extract info from the radio cluster
  1132.          • Shows some fun with view transition effects
  1133.  
  1134.  
  1135.  
  1136. Rec Toggle    v2-2/28/94    by Maurice Sharp    for Newton ToolKit
  1137.     category: Protos
  1138.     keywords: proto, recognition
  1139.     description: Demos the recognition toggle button (as used in the notepad...).
  1140.  
  1141.  
  1142.  
  1143. Scroll Over    v2-10/13/93    by Bob Ebert    for Newton ToolKit
  1144.     category: Views
  1145.     keywords: Scrolling, Horizontal, Vertical, World Map, PICTs, tap and drag, SetOrigin
  1146.     description: demonstrates 2D scrolling of larger views within a clipping view via two methods, totally custom and using abuilt in proto.  v2 removes an extra call to :Dirty() that wasn't necessary.
  1147.  
  1148.  
  1149.  
  1150. SendCard    v2-12/22/93    by Maurice Sharp    for Newton ToolKit
  1151.     category: Routing
  1152.     keywords: routing, beaming
  1153.     description: Shows how to put multiple things into the outbox. Can be used as the basis of something that breaks up beams into multiple chunks
  1154.  
  1155.  
  1156.  
  1157. Shell Game    v3-4/22/94    by Maurice Sharp    for Newton ToolKit
  1158.     category: Protos
  1159.     keywords: protoExpandoShell, proto
  1160.     description: this little thing shows how to keep 2 shells that are side by side in sync. Kind of stupid, but you never know :-)
  1161.  
  1162.  
  1163.  
  1164. Show Me to the Bar    v2-2/28/94    by Todd Courtois    for Newton ToolKit
  1165.     category: Protos
  1166.     keywords: protoShowBar, filing
  1167.     description: Very very simple app which shows the basics of setting up the protoShowBar.  Doesn't actually do any filing, but shows you how to set up the interface.  Implements the basics of all the required slots/functions for the protoShowBar.
  1168.  
  1169.  
  1170.  
  1171. Simple Dialer    v1-3/7/94    by Todd Courtois    for Newton ToolKit
  1172.     category: Sound
  1173.     keywords: Dial() method, protokeyboard layout
  1174.     description: This simple app mainly demonstrates the root's :Dial() method, and secondarily 
  1175.         demonstrates how to set up a protokeyboard.
  1176.         
  1177.  
  1178.  
  1179.  
  1180. Size Doesn't Matter    v2-9/15/93    by Bob Ebert    for Newton ToolKit
  1181.     category: Views
  1182.     keywords: Scaling, Dragging, XOR, grow rectangle, drag, viewBounds reapair
  1183.     description: Demonstrates dragging to change the size of a view, with intermediate feedback.  Also demonstrates how to repair viewBounds after Drag() has munged them.
  1184.  
  1185.  
  1186.  
  1187. Sound Advice    v2-9/15/93    by Maurice Sharp    for Newton ToolKit
  1188.     category: Sound
  1189.     keywords: sound, resources
  1190.     description: Shows how to import sounds into NTK and play the sound from NewtonScript.
  1191.  
  1192.  
  1193.  
  1194. Sound Tricks    v3-3/7/94    by Todd Courtois    for Newton ToolKit
  1195.     category: Sound
  1196.     keywords: Sound samples, ExtractByte, StuffByte, PlaySound
  1197.     description: SoundTricks is intended to demonstrate a couple tricks with sound on the Newton, modifying the samplingRate of a sound sample to shift speed and pitch, and using StuffByte and ExtractByte on the actual sound samples to reverse a sound.
  1198.  
  1199.  
  1200.  
  1201. Soup Hacking    v1-9/15/93    by Kent Sandvik    for Inspector/Listner
  1202.     category: Data Storage (Soups)
  1203.     keywords: soup, CardSoups, CreateAppSoup, store, PCMCIA
  1204.     description: Inspector-compatible text file illustrating some useful Soup functions.
  1205.  
  1206.  
  1207.  
  1208. Soup Tour    v2-3/7/93    by David Levy & Kent Sandvik    for Inspector/Listner
  1209.     category: Data Storage (Soups)
  1210.     keywords: Soup index entries stores Query Cursor
  1211.     description: This is a simple walkthrough of many store and soup functions, including queries and smart index tricks. Check this out using an Inspector Window.
  1212.  
  1213.  
  1214.  
  1215. SoupShow    v2-12/22/93    by Maurice Sharp    for Newton ToolKit
  1216.     category: Miscellaneous (Other)
  1217.     keywords: views, application design, display data, data
  1218.     description: This multi-part sample shows how to display data without all the noise of creating soups. It displays the names from the names file. It has 2 parts, a simple implementation that just has an individual item view and scrolls through names. It also has a more complex sample that does an overview as well.
  1219.         
  1220.         Full step by step readmees make this a happy happy joy joy experience
  1221.  
  1222.  
  1223.  
  1224. Splash    v1-7/11/94    by Bob Ebert & Maurice Sharp    for Newton ToolKit
  1225.     category: User Interface
  1226.     keywords: splash screen, info button, About
  1227.     description: Shows how to do a splash screen that is visible while the application is opening and an about slip using new Info button.
  1228.  
  1229.  
  1230.  
  1231. Strange Changes    v2-3/8/94    by Todd Courtois    for Newton ToolKit
  1232.     category: Views
  1233.     keywords: clEditView, clPolygonView, viewChangedScript, viewAddChildScript
  1234.     description: This sample code implements a workaround to a current clEditView bug.  The bug is, if you change the clPolygonView child of a clEditView without changing the viewBounds of the polygonView, the clEditView's viewChangedScript will not be called as it should be.
  1235.         
  1236.         This is a good example for studying when certain scripts are called in a clEditView.  It prints to the listener as various scripts are called.  Also very instructive on how to add your own scripts to the auto-generated children of a clEditView.
  1237.  
  1238.  
  1239.  
  1240. SuperSlurp    v1-7/11/94    by Jim Schram, Todd Courtois, ZZ, Kent Sandvik    for Newton ToolKit
  1241.     category: Communications
  1242.     keywords: soup, serial MNP endpoint, connection to PC or Mac
  1243.     description: SuperSlurp sucks soup data down from a Mac via a serial endpoint, then stuffs it into a soup.  SuperSlurp has the capability of creating soups which are currently non-resident on the Newton at runtime, by command of the Mac.  
  1244.         
  1245.         SuperSlurp uses SERIAL MNP at 57600 bps.  Must have the Apple Modem CTB Tool which comes with NTK to use it.  Stuffs entries into the soup much much faster than old Slurp, also transfers data much faster and more reliably with MNP.
  1246.  
  1247.  
  1248.  
  1249. Sync Another One    v2-3/8/94    by Bob Ebert    for Newton ToolKit
  1250.     category: Connection Kit
  1251.     keywords: Newton Connection, Macintosh, PC, Windows, MetaData, Soup, Store, User Interface
  1252.     description: Illustrates how to write (and TEST) Newton Connection MetaData.
  1253.  
  1254.  
  1255.  
  1256. SyncScroll    v1-7/11/94    by J. Christopher Bell    for Newton ToolKit
  1257.     category: Views
  1258.     keywords: SyncScroll scroll view height templates
  1259.     description: This example shows how to use SyncScroll and how to use the 'height' slot correctly with view templates.
  1260.  
  1261.  
  1262.  
  1263. tables and lists    v2-2/28/94    by Todd Courtois    for Newton ToolKit
  1264.     category: Protos
  1265.     keywords: protoTable, protoTextList, protos
  1266.     description: Small demo of protoTable and protoTextList. Shows how you can do toggle selections on items (i.e., click once to select, then again to deselect), shows how you can do your own stuff when clicks happen (trivial in protoTextList, skanky in protoTable).
  1267.  
  1268.  
  1269.  
  1270. TabsNStyles    v2-9/15/93    by Kent Sandvik and Christopher Bell    for Newton ToolKit
  1271.     category: Views
  1272.     keywords: clParagraphView styles tabs
  1273.     description: demonstrates:
  1274.          • style information in a clParagraphView
  1275.          • tab information in a clParagraphView
  1276.  
  1277.  
  1278.  
  1279. Text List    v2-9/15/93    by Kent Sandvik    for Newton ToolKit
  1280.     category: Protos
  1281.     keywords: protoTextList
  1282.     description: shows how protoTextList operates
  1283.  
  1284.  
  1285.  
  1286. The Little Prints    v4-2/28/94    by Maurice Sharp    for Newton ToolKit
  1287.     category: Routing
  1288.     keywords: routing, print, fax
  1289.     description: This is a minimalist approach to printing and faxing. That is really all it does.
  1290.         v3 fixes a wee problem in the removeScript so it removes the correct thing :-)
  1291.  
  1292.  
  1293.  
  1294. True Grid    v1-7/11/94    by Bob Ebert    for Newton ToolKit
  1295.     category: Application Design
  1296.     keywords: Grid View, Drawing, columns, proto, performance
  1297.     description: Implements three different ways to do scrolling "grid" views based on soup data, and evaluates the complexity and performance tradeoffs of each.
  1298.  
  1299.  
  1300.  
  1301. Undo Redo    v2-9/15/93    by Bob Ebert    for Newton ToolKit
  1302.     category: System Services
  1303.     keywords: Undo, Redo, ClearUndoStack
  1304.     description: demonstrates registering Undo, and an attempt at Redo.  See the README doc for important information on Redo.
  1305.  
  1306.  
  1307.  
  1308. Unholy Drawers    v2-2/28/94    by Todd Courtois    for Newton ToolKit
  1309.     category: Protos
  1310.     keywords: protoDrawer, Toggle
  1311.     description: This bit of sample code demonstrates how to create your own "drawers" like the Extras drawer, using the undocumented proto protoDrawer.  Demonstrates how to open, close, and add child views to a protoDrawer
  1312.  
  1313.  
  1314.  
  1315. Up In Smoke    v3-10/1/93    by Mike Engber    for Newton ToolKit
  1316.     category: Drawing
  1317.     keywords: Smoke, Clouds, Poof, Drawing, CopyBits
  1318.     description:  Shows how to achieve the ever popular smoke/poof/scrub effect.  Also illustrates scaling with CopyBits, using modeMask with CopyBits, and using BuildContext to force an update of an area of the screen.
  1319.  
  1320.  
  1321.  
  1322. ViewScripts    v2-2/28/94    by Bob Ebert & Gabriel Acosta-Lopez    for Newton ToolKit
  1323.     category: Views
  1324.     keywords: viewSetupFormScript, viewSetupChildrenScript, viewSetupDoneScript, viewDrawScript
  1325.     description: illustrates order of form, child, done, and drawing scripts.
  1326.  
  1327.  
  1328.  
  1329. WakeUpAndGoToSleep    v1-3/3/94    by Mike Engber    for Newton ToolKit
  1330.     category: Views
  1331.     keywords: PowerOffScript, Sleep
  1332.     description: Shows how to detect when the Newton wakes up.
  1333.  
  1334.  
  1335.  
  1336. Wally Math    v2-2/28/94    by ZZ and Todd    for Newton ToolKit
  1337.     category: Utility Functions
  1338.     keywords: Compile, Try, OnException
  1339.     description: This code uses the Compile function to take written mathematical input and run it as newtonscript, then return an answer.  Now has good exception handling so that things like divide by zero don't cause it to crash.
  1340.  
  1341.  
  1342.  
  1343. WordArray    v1-7/11/94    by J. Christopher Bell    for Newton ToolKit
  1344.     category: Recognition
  1345.     keywords: word array, GetWordArray, GetScoreArray
  1346.     description: This project shows how to access the recognition engine's statistics regarding most-likely words and confidence scores. The GetWordArray and GetScoreArray functions do most of the work in this sample code project.
  1347.  
  1348.  
  1349.  
  1350. Wrap It Up    v3-7/11/94
  1351.     by Bob Ebert & J. Christopher Bell    for Newton ToolKit
  1352.     category: Views
  1353.     keywords: clParagraphView, clEditView, wrapping, line height, vCalculateBounds, SimpleTextHeight
  1354.     description: illustrates dynamically changing the height of clParagraphViews based on their contents.  Two ways to do it are illustrated, one using the vCalculateBounds viewFlag, and one using a platform file function to calculate paragraph heights.
  1355.  
  1356.  
  1357.  
  1358.